set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# Add Google Test
add_subdirectory(
    ${CMAKE_SOURCE_DIR}/third_party/googletest_v1_12_1
    ${CMAKE_BINARY_DIR}/third_party/googletest_v1_12_1
)

# find all test module
file(GLOB TEST_MODULES LIST_DIRECTORIES true *)
foreach(MODULE ${TEST_MODULES})
  if(IS_DIRECTORY ${MODULE})
    add_subdirectory(${MODULE})
  endif()
endforeach()
